package nju.bean.meeting.gui;

import java.awt.Color;
import java.net.URL;

import javax.swing.ImageIcon;

public class ListIcon{
	private ImageIcon icon;
	private String text;
	private Color userColor;

	public ListIcon(String i, String t, Color c){
		this.icon=new ImageIcon(i);
		this.text=t;
		this.userColor=c;
	}
	
	public ListIcon(URL u, String t, Color c){
		this.icon=new ImageIcon(u);
		this.text=t;
		this.userColor=c;
	}
	
	public ImageIcon getIcon(){ 
		return icon;
	}
	
	public String getText(){ 
		return text;
	}
	
	public Color getColor(){
		return userColor;
	}
	
	public void setText(String t){
		this.text=t;
	}
	
	public void setIcon(String i){
		this.icon=new ImageIcon(i);
	}
	
	public void setIcon(URL u){
		this.icon=new ImageIcon(u);
	}
	
	public void setColor(Color c){
		this.userColor=c;
	}
	
}